import VueRouter from 'vue-router'
import {home,member,car,searcher as search,newslist,newsInfo,comment} from "./comonents/tabbar/app.js"

let router = new VueRouter({  //创建路由对象
  routes:[
    {path:"/",redirect:"/home"}, //从定向
    {path:"/home",component:home},
    {path:"/member",component:member},
    {path:"/car",component:car},
    {path:"/search",component:search},
    {path:"/home/newslist",component:newslist},
    //  :  :id 站位
    {path:"/home/newsInfo/:id",component:newsInfo,children:[
        {path:"",component:comment}
      ]}
  ],
  linkActiveClass:'mui-active' //设置路由选中的类
})
export default router;
export {VueRouter}